//
// Created by Yurzi on 2021/4/7.
//全局变量文件
//


#include "DataTypes.h"
#include "GlobalDefinitions.h"
#include <stdio.h>

//文件位置
char* file_kind="kind.json";//kind文件的路径
char* file_good="good.json";//good文件的路径
char* file_tag="tag.json";//tag文件的路径
char* file_material="material.json";//material文件的路径
char* file_log="log.data";   //log文件的路径

//链表指针位置
volatile Kind* goodTree = NULL;
volatile Good* goodList = NULL;
volatile Kind* kindList = NULL;
volatile Tag* tagList = NULL;
volatile Material* mtList = NULL;
volatile Car *carList=NULL;  //购物车头指针
volatile LogNode *Log_head=NULL;
volatile LogNode *Log_rear=NULL;

//书指针
volatile GoodPage *goodBook=NULL;
volatile KindPage *kindBook=NULL;
volatile TagPage *tagBook=NULL;
volatile MTPage *mtBook=NULL;
volatile LogPage *logBook=NULL;

//密码相关
int pwdlength = 0;
char password[MAX_PWDLENGTH];